package com.shigen.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户的信息
 * </p>
 *
 * @author shigen.fu
 * @since 2022-06-04
 */
@TableName("user_info")
@ApiModel(value = "UserInfo对象", description = "用户的信息")
@Data
@ToString
@Accessors(chain = true)
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增的ID")
    @TableId(value = "auto_id", type = IdType.AUTO)
    private Integer autoId;

    @ApiModelProperty("userid")
    private Integer userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("性别 0---男 1---女")
    private Integer sex;

    @ApiModelProperty("电子邮箱")
    private String email;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("地区")
    private String region;

    @ApiModelProperty("注册时间")
    private LocalDate regTime;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("生日")
    private LocalDate birthday;

    @ApiModelProperty("用户头像的保存路径")
    private String iconPath;

    @ApiModelProperty("是否在职 1表示不在 0表示在")
    private Integer isActive;

    @ApiModelProperty("是否删除 0表示删除 1表示不删除")
    private Integer isDel;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("创建人id")
    private Long createUserId;

    @ApiModelProperty("创建人名字")
    private String createUserName;

}
